package org.qs.webservice.dao.content;


import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.qs.webservice.domain.ConBook;
import org.springframework.stereotype.Component;

@Component
public interface ConBookMapper {
	/**
	 * 根据书籍id获取图书详情
	 * @param book_id
	 * @return
	 */
	ConBook getBookById(@Param("book_id")int book_id);
	/**
	 * 
	 * @param user_id
	 * @return
	 */
	List<ConBook> getBookByUser(@Param("author_id")Long author_id,@Param("pages")int pages,@Param("contents")int contents);
	int getBookNumByUser(@Param("author_id")Long author_id);
	
	
}